package com.wanke.dao;

import java.util.List;

import com.wanke.entity.Banji;
import com.wanke.entity.CheckinDormitory;
import com.wanke.entity.Dormitory;
import com.wanke.entity.Student;

public interface StudentDao {

	void persist(Student transientInstance);

	void attachDirty(Student instance);

	void attachClean(Student instance);

	void delete(Student persistentInstance);

	Student merge(Student detachedInstance);

	Student findById(int id);

	List findByExample(Student instance);

	List<Student> findByDormitory(Dormitory dormitory);

	boolean updateStudent(Student student);
	
	Student findByBanjiAndName(String name,Banji banji);
	
	//yzj
	
	public Student findByUserPass(String username, String password);
	
	public List<Student> findAllStu();
	
	public void addStu(Student stu);
}